#!/usr/bin/env python
# encoding: utf-8
"""
Shovelhead
File: RockOn.py
Author: Myriam Boucher

Responsible for the ambiance music (motorcycle radio).
"""
# To do: add a selection of music.

from pyo import *

class RockOn:
    def __init__(self):
        
        self.mixRock = SfPlayer(path='borntobewild.wav', speed=1, loop=True, offset=0, interp=2, mul=.40, add=0)
        
    def playMusic(self):
        self.mixRock.out()
        return self
    
    def stopMusic(self):
        self.mixRock.stop()